package com.study.typeHandlers;

import com.study.enums.StateEnum;
import org.apache.ibatis.type.EnumOrdinalTypeHandler;
import org.apache.ibatis.type.JdbcType;
import org.apache.ibatis.type.MappedJdbcTypes;
import org.apache.ibatis.type.MappedTypes;

/**
 * @author : wilbur.yuan
 * @date : 2019-02-25
 */
@MappedTypes(StateEnum.class)
@MappedJdbcTypes(JdbcType.TINYINT)
public class StateEnumHandler extends EnumOrdinalTypeHandler<StateEnum> {

    public StateEnumHandler(Class<StateEnum> type) {
        super(type);
    }

}
